//
// File:	util.hpp
// Author:	Thomas TISSOT-DUPONT
// E-mail:	<thomas.tissotdupont@free.fr>
// Create:	02/02/2010 16:28:38
// Purpose:	
//
#ifndef UTIL_HPP
#define UTIL_HPP

#include <string>

namespace util
{
	//------------------------------------------------------------------
	// String
	//------------------------------------------------------------------
	std::string					tolower(const std::string &);
	std::string					toupper(const std::string &);

	//------------------------------------------------------------------
	// Min / Max
	//------------------------------------------------------------------
	template <typename T>T		min(T a, T b)
	{
		return (a < b) ? a : b;
	}

	template <typename T> T		max(T a, T b)
	{
		return (a < b) ? b : a;
	}
}

#endif //!UTIL_HPP
